import App from './App'
import uvUI from '@/uni_modules/uv-ui-tools'
import appInit from '@/common/appInit'
import store, { Pinia } from './store'
import { Request } from '@/util/request'
import { routeInterceptor } from '@/util/route'
import { objectToUrlParams } from '@/util/tools.js';
import { createSSRApp } from 'vue'
uni.$uv.objectToUrlParams = objectToUrlParams;
export function createApp() {
	const app = createSSRApp(App)
	appInit()
	app.use(store)
	app.use(routeInterceptor)
	Request(app)
	return { app , Pinia }
}